package 新建文件夹;

import java.util.Scanner;

public class Demo11 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("输入你的成绩");
		int score = sc.nextInt();
		if(score >= 0 && score < 60) {
			System.out.println("这个同学成绩为:" + score + "，等级为:A");
		}else if(score >= 60 && score <= 80) {
			System.out.println("这个同学成绩为:" + score + "，等级为:B");
		}else if(score >= 81 && score <= 100) {
			System.out.println("这个同学成绩为:" + score + "，等级为:C");
		}else {
			System.out.println("输入有误");
		}

	}

}
